<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>study</title>
    <script src="js/jquery-3.3.1.min.js"></script>
</head>
<body>
<div id="div1">div1....</div>
<br>
<div id="div2">div2....</div>
<br>
<script>
    //使用jQuery
    var div1 = $("#div1");
    alert(div1.html());
    /*获取div1的标签体内容*/

    var div2 = $("#div2");
    alert(div2.html());
</script>

</body>
</html>